package pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Comment implements Serializable {

    public int commentid;
    public String mContent;// 评论内容
    public User mCommentator; // 评论者
    public User mReceiver; // 接收者（即回复谁）
    public  String blogid;


    public int getCommentid() {
        return commentid;
    }

    public void setCommentid(int commentid) {
        this.commentid = commentid;
    }

    public String getmContent() {
        return mContent;
    }

    public void setmContent(String mContent) {
        this.mContent = mContent;
    }

    public String getContent() {
        return mContent;
    }

    public void setContent(String content) {
        this.mContent = content;
    }

    public User getmCommentator() {
        return mCommentator;
    }

    public void setmCommentator(User mCommentator) {
        this.mCommentator = mCommentator;
    }

    public User getmReceiver() {
        return mReceiver;
    }

    public void setmReceiver(User mReceiver) {
        this.mReceiver = mReceiver;
    }

    public String getBlogid() {
        return blogid;
    }

    public void setBlogid(String blogid) {
        this.blogid = blogid;
    }


    @Override
    public String toString() {
        return "Comment{" +
                "commentid='" + commentid + '\'' +
                ", mContent='" + mContent + '\'' +
                ", mCommentator=" + mCommentator +
                ", mReceiver=" + mReceiver +
                ", blogid=" + blogid +
                '}';
    }
}
